

import sun.misc.resources.*;
public class Test1 {
	
	public static void main(String[] args) {
		
		
		
		String s1="MyString";
		String s2=new String("MyString");
		s2 = s2.intern();
		System.out.println(s1==s2);
		
		
		String s = new String("Ruchi");	
		String s4 = "Ruchi";
		System.out.println(s4 =="Ruchi");
	}
	

}
